import request from '@/utils/request'

// 查询工艺工序图纸列表
export function routeProcessDrawingList(query) {
    return request({
        url: '/mes/pro/routeprocess/drawing/drawinglist',
        method: 'get',
        params: query
    })
}

// 查询工艺工序图纸详细
export function getProRouteProcessDrawing(recordId) {
    return request({
        url: '/mes/pro/routeprocess/drawing/proRouteProcessDrawing/' + recordId,
        method: 'get'
    })
}

// 新增工艺工序图纸
export function addProRouteProcessDrawing(data) {
    return request({
        url: '/mes/pro/routeprocess/drawing/add',
        method: 'post',
        data: data
    })
}

// 修改工艺工序图纸
export function updateProRouteProcessDrawing(data) {
    return request({
        url: '/mes/pro/routeprocess/drawing/edit',
        method: 'put',
        data: data
    })
}

// 删除工艺工序图纸
export function delProRouteProcessDrawing(recordId) {
    return request({
        url: '/mes/pro/routeprocess/drawing/remove/' + recordId,
        method: 'delete'
    })
}
